package edu.sctu.practice.class02.Wangpeng.Test1;

/**
 * Created by wp on 2015/11/18.
 */
public class Circle extends Shape {
    public double r;
    public double getArea(){return(r*r*Math.PI); }
    public double getPerimeter(){return (2*r*Math.PI);}

    Circle(int x,int y,int width,int height){
        super(x,y,width,height);
        r=(double)width/2;
    }
}
